import { createBrowserRouter } from 'react-router-dom'
import type { RouteObject } from 'react-router-dom'
import Layout from '@/layout'
import ChildRoutes from './routes'

const routes: RouteObject[] = [
  {
    path: '/',
    element: <Layout />,
    children: ChildRoutes
  }
]

const router = createBrowserRouter(routes)

export default router
